#ifndef MYTCPSERVER_H
#define MYTCPSERVER_H

#include <QTcpServer>

class mytcpserver : public QTcpServer
{
    Q_OBJECT
public:
    explicit mytcpserver(QObject *parent = nullptr);

protected:
    virtual void incomingConnection(qintptr socketDescriptor);//重写此函数

signals:
    void newDescriptoe(qintptr sock);
};

#endif // MYTCPSERVER_H
